<?php
/**
 * 
 * TinyMCE plugin
 * 
 * @name			TinyMCE
 * @description		Rich html WYSIWYG editor plugin
 * @version			1.0.0
 * 
 * @author			Stijn Van Minnebruggen
 * @author_url		www.donotfold.be
 * @plugin_url		www.donotfold.be/projects/cosa
 * 
 */

class tinymce
{
	
	/**
	 * Install script for plugin
	 * 
	 * @return	bool
	 */
	
	public function install()
	{
		return true;
	}
	
	
	/**
	 * Uninstall script for plugin
	 * 
	 * @return	bool
	 */
	
	public function uninstall()
	{
		return true;
	}
	
	
	/**
	 * Method for html header
	 * 
	 * @return	string
	 */
	
	public function htmlHeader()
	{
		global $cosa;
		$html = '<script type="text/javascript" src="'.$cosa->system('plugins-url').'/tinymce/tiny_mce/tiny_mce.js"></script>'."\n\t";
		$html .= '<script type="text/javascript" src="'.$cosa->system('plugins-url').'/tinymce/tiny_mce/tiny_mce_cosa.js"></script>';
		return $html;
	}
	
	
}

?>